package com.aggregate.pay.swiftpass.support.client;

import com.aggregate.pay.swiftpass.bean.RefundQueryData;
import com.aggregate.pay.swiftpass.bean.RefundQueryResult;
import com.aggregate.pay.swiftpass.support.AbstractClient;
import com.aggregate.pay.swiftpass.support.Merch;

/**
 * 退款查询API
 * @author Moyq5
 * @date 2019年12月20日
 */
public class RefundQuery extends AbstractClient<RefundQueryData, RefundQueryResult> {

	public RefundQuery(Merch merch) {
		super(merch);
	}

	@Override
	protected Class<RefundQueryResult> getResultClass() {
		return RefundQueryResult.class;
	}

	@Override
	public RefundQueryResult execute(RefundQueryData data) {
		data.setService("unified.trade.refundquery");
		return super.execute(data);
	}

}
